import axios from "@/axios"

export function login_func(username: string, password: string) {
    return axios.post("/login", {
        username,
        password
    })
}

export function getUserInfo_func(username: string) {
    return axios.post('/getUserInfo', {
        username
    })
}

export function logout_func() {
    return axios.post('/logout')
}
